package com.jxc.jxc01.hch.entity;

import java.util.Objects;

public class Inventory {
    private int id;
    private String name;
    private String category;
    private int inventorynumber;
    private String unit;
    private int warehouseid;
    private String creationtime;
    private String modificationtime;
    private String remarks;
    private String warehousename;

    public Inventory() {
    }

    public Inventory(int id, String name, String category, int inventorynumber, String unit, int warehouseid, String creationtime, String modificationtime, String remarks, String warehousename) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.inventorynumber = inventorynumber;
        this.unit = unit;
        this.warehouseid = warehouseid;
        this.creationtime = creationtime;
        this.modificationtime = modificationtime;
        this.remarks = remarks;
        this.warehousename = warehousename;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getInventorynumber() {
        return inventorynumber;
    }

    public void setInventorynumber(int inventorynumber) {
        this.inventorynumber = inventorynumber;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getWarehouseid() {
        return warehouseid;
    }

    public void setWarehouseid(int warehouseid) {
        this.warehouseid = warehouseid;
    }

    public String getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(String creationtime) {
        this.creationtime = creationtime;
    }

    public String getModificationtime() {
        return modificationtime;
    }

    public void setModificationtime(String modificationtime) {
        this.modificationtime = modificationtime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getWarehousename() {
        return warehousename;
    }

    public void setWarehousename(String warehousename) {
        this.warehousename = warehousename;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Inventory inventory = (Inventory) o;
        return id == inventory.id && inventorynumber == inventory.inventorynumber && warehouseid == inventory.warehouseid && Objects.equals(name, inventory.name) && Objects.equals(category, inventory.category) && Objects.equals(unit, inventory.unit) && Objects.equals(creationtime, inventory.creationtime) && Objects.equals(modificationtime, inventory.modificationtime) && Objects.equals(remarks, inventory.remarks) && Objects.equals(warehousename, inventory.warehousename);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, category, inventorynumber, unit, warehouseid, creationtime, modificationtime, remarks, warehousename);
    }

    @Override
    public String toString() {
        return "Inventory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", inventorynumber=" + inventorynumber +
                ", unit='" + unit + '\'' +
                ", warehouseid=" + warehouseid +
                ", creationtime='" + creationtime + '\'' +
                ", modificationtime='" + modificationtime + '\'' +
                ", remarks='" + remarks + '\'' +
                ", warehousename='" + warehousename + '\'' +
                '}';
    }
}
